package com.ruoyi.blog.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 评论对象 t_comment
 *
 * @author yang
 * @date 2021-12-11
 */
public class TComment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long commentId;

    /** 评论者id */
    @Excel(name = "评论者id")
    private Long userId;

    /** 评论文章的id */
    @Excel(name = "评论文章的id")
    private Long blogId;

    /** 评论者名称 */
    @Excel(name = "评论者名称")
    private String userName;

    /** 评论内容 */
    @Excel(name = "评论内容")
    private String content;

    /** 评论者邮箱 */
    @Excel(name = "评论者邮箱")
    private String userEmail;

    /** 发表时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发表时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date genTime;

    public void setCommentId(Long commentId)
    {
        this.commentId = commentId;
    }

    public Long getCommentId()
    {
        return commentId;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setBlogId(Long blogId)
    {
        this.blogId = blogId;
    }

    public Long getBlogId()
    {
        return blogId;
    }
    public void setUserName(String userName)
    {
        this.userName = userName;
    }

    public String getUserName()
    {
        return userName;
    }
    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }
    public void setUserEmail(String userEmail)
    {
        this.userEmail = userEmail;
    }

    public String getUserEmail()
    {
        return userEmail;
    }
    public void setGenTime(Date genTime)
    {
        this.genTime = genTime;
    }

    public Date getGenTime()
    {
        return genTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("commentId", getCommentId())
                .append("userId", getUserId())
                .append("blogId", getBlogId())
                .append("userName", getUserName())
                .append("content", getContent())
                .append("userEmail", getUserEmail())
                .append("genTime", getGenTime())
                .toString();
    }
}